!macro customInstall
  DetailPrint "Register downloader-app URI Handler"
  DeleteRegKey HKCR "downloader-app"
  WriteRegStr HKCR "downloader-app" "" "URL:downloader-app"
  WriteRegStr HKCR "downloader-app" "URL Protocol" ""
  WriteRegStr HKCR "downloader-app\shell" "" ""
  WriteRegStr HKCR "downloader-app\shell\Open" "" ""
  WriteRegStr HKCR "downloader-app\shell\Open\command" "" "$INSTDIR\${APP_EXECUTABLE_FILENAME} %1"
!macroend

!macro customUnInstall
  DetailPrint "Unregister downloader-app URI Handler"
  DeleteRegKey HKCR "downloader-app"
!macroend
